Before you can build a Kanzi application for your target platforms, set up and configure the Kanzi build environment for your target platforms. The build environment includes tools that the Kanzi build system uses to build your application for your target platforms. The Kanzi QNX platform packages are available on request.
To build and deploy Kanzi applications to QNX, you need:
Before deploying your Kanzi application to your QNX target device, make sure that device is running the QNX Screen service. See http://www.qnx.com/developers/docs/7.0.0/index.html#com.qnx.doc.screen/topic/manual/cscreen_about.html.
SCons runs the SConstruct file in the configuration directory of the platform from which you run the scons
command. SConstruct file is the entry point for building the application and contains the information about the Kanzi Engine location and runs these files:
To build Kanzi applications for QNX:
Run the scons
command with the build parameters for your Kanzi application.
Syntax | scons <library> <type> <name>
|
||||||
Parameters |
|
||||||
Examples |
// Builds the application with the default settings as specified // in config.py and SConstruct configuration files. scons // Builds the debug version of the application. scons debug
// Builds the debug version of the application with the
// OpenGL ES 3.0 graphics library from the Kanzi Studio
// project named MyProject.
scons ES3 debug MyProject
|
Scons builds the Kanzi application source code and binary files in the <ProjectName>/Application/output directory.
To deploy Kanzi applications to QNX:
// Adds execution rights on the QNX target device
// for the Kanzi application called MyApplication.
chmod 755 MyApplication
// Starts the Kanzi application called MyApplication.
./MyApplication